var nf = sm("do_Notification");

var root = ui("$");
root.setMapping({
    "textField.hint": "textFieldHint",
    "textField.password": "textFieldPassword",
    "textField.inputType": "textFieldInputType"
});

var textField = ui("textField");
var clearImgview = ui("clearImgview");
var aoutClearImgview = ui("aoutClearImgview");

textField.on("textChanged",function(){
	if(textField.text !== ""){
		clearImgview.visible = true;
	}else{
		clearImgview.visible = false;
	}
});

aoutClearImgview.on("touch",function(){
	textField.text="";
});